package demo4;

import java.util.Comparator;

/**
 * @Author: XXHH
 * @CreateTime: 2025-01-12
 */
public class AgeCompator implements Comparator<Student> {

    @Override
    public int compare(Student o1, Student o2) {
        return o1.age - o2.age;
    }
}
